package thread;

import utils.Account;

public class MyRunnable implements Runnable{
    private Account acc;
    
    public MyRunnable(Account acc,String name){
        Thread.currentThread().setName(name);
        this.acc = acc;
    }
    @Override
    public void run() {
        acc.drawMoney(1000);
    }
}
